package com.blkbox.javase.asynchronous.ex1;

public class Invoker {

	public static void main(String[] args) throws InterruptedException {
		final Producer producer = new Producer();
		Thread th = new Thread() {
			public void run() {
				try {
					producer.makeProduce();
				} catch (InterruptedException e) {
				}
			}
		};
		th.start();
		System.out.print("result is ");
		System.out.println(producer.getProduct());
	}

}
